-- GENERATED SPELL FOR [Vilebranch Headhunter] --


function spell0_2641(pUnit, Event) --@Poisonous Stab,n/a--
pUnit:FullCastSpellOnTarget(7357,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2641', 15000, 1)
end

function spell1_2641(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2641', 500, 1)
end

function Sorts_2641(pUnit, Event)
local choix_sorts_2641 = math.random(0, 1)
if choix_sorts_2641 == 0 then
pUnit:RegisterEvent('spell0_2641', 1, 1)
end
if choix_sorts_2641 == 1 then
pUnit:RegisterEvent('spell1_2641', 1, 1)
end
end

function mob2641_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2641', math.random(1500, 3000), 1)
end

function mob2641_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2641_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2641_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2641, 1, 'mob2641_Action')
RegisterUnitEvent(2641, 2, 'mob2641_Leave')
RegisterUnitEvent(2641, 3, 'mob2641_Kill')
RegisterUnitEvent(2641, 4, 'mob2641_Die')
